<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: hellcat
  Date: 2019/12/25
  Time: 13:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<div id="WareAddView" style="display:none;">
    <%--     class="layui-row"--%>
    <div style="padding: 20px;">
        <div class="layui-form">
            <form class="layui-form" lay-filter="waresAddView" id="waresAddView" autocomplete="off">
                <div class="layui-form-item">
                    <label class="layui-form-label">商品条码：</label>
                    <div class="layui-inline">
                        <input id="WaresAddId" name="id" class="layui-input" type="text"
                               lay-verify="required|positiveInteger" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品名称：</label>
                    <div class="layui-inline">
                        <input id="WaresAddName" name="name" class="layui-input" type="text" lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品分类：</label>
                    <div class="layui-inline" style="width:150px;">
                        <select lay-filter="WaresAddCategory1" id="WaresAddCategory1" name="category1">
                        </select>
                    </div>
                    <div class="layui-inline" style="width:150px;">
                        <select lay-filter="WaresAddCategory2" id="WaresAddCategory2" name="category">
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">保鲜期：</label>
                    <div class="layui-inline">
                        <input id="WaresAddFreshDate" name="freshDate" class="layui-input" type="text"
                               lay-verify="required|positiveInteger">
                        <span class="span">天</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">保质期：</label>
                    <div class="layui-inline">
                        <input id="WaresAddExpiryDate" name="expiryDate" class="layui-input" type="text"
                               lay-verify="required|positiveInteger">
                        <span class="span">天</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">规格：</label>
                    <div class="layui-inline">
                        <input id="WaresAddSpecification" name="specification" class="layui-input"
                               type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">单位：</label>
                    <div class="layui-inline" style="width:190px;">
                        <select lay-filter="WaresAddUnit" id="WaresAddUnit" name="unit" class="waresUnit">
                        </select>
                    </div>
                    <button type="button" class="layui-btn layui-btn-sm UnitAdd">
                        添加新单位
                    </button>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">库存：</label>
                    <div class="layui-inline">
                        <input class="layui-input" type="text" id="WaresAddInventory" name="inventory"
                               lay-verify="required|positiveInteger">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">进价：</label>
                    <div class="layui-inline" style="width:190px;">
                        <input id="WaresAddPurchase" name="purchase" class="layui-input unit moneyFormatter"
                               type="text" lay-verify="required|money"><span class="span">元</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">售价：</label>
                    <div class="layui-inline" style="width:190px;">
                        <input id="WaresAddPrice" name="price" class="layui-input unit moneyFormatter"
                               type="text"
                               lay-verify="required|money"><span
                            class="span">元</span>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>